package com.gancai.admin;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.client.discovery.DiscoveryClient;

@SpringBootTest
public class test {

    @Autowired
    DiscoveryClient discoveryClient;

//    @Value("${admin.test}")
//    String test;

    @Test
    void test(){

        discoveryClient.getServices().forEach(v->{
            System.out.println("service="+v);
        });

        System.out.println("nacos 配置"+"test");

    }

}
